package com.alibaba.cloud.boot.order.facade;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/stock")
public interface StockFacade {

    @GetMapping("/reduceStockCount")
    public String reduceStockCount(@RequestParam("stockId") int stockId, @RequestParam("stockCount") int stockCount);

    @GetMapping("/mustFail")
    public String mustFail();

}
